#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../tools/tools.h"

int main(int argc, char** argv) {
	int val_k;
	long ret;
    if (argc < 3) {
  	  fprintf(stderr,"Usage: %s <input> <k> <-o output>",argv[0]);
	  return 2;
    }	  
	val_k = atoi(argv[2]);
	if ((argc >= 5) && (strcmp(argv[3],"-o") == 0))
		ret = f5d(argv[1], argv[4], val_k, 55);
	else
		ret = f5d(argv[1], NULL, val_k, 55);
	return ret;
}